package cn.laixueit.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.annotation.RabbitListeners;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class AmqpListener {


    @RabbitListeners({
            @RabbitListener(queues = "test_que")
    })
    public void listener(Map<String,Object> msg){
        System.out.println(msg);
    }
}
